package com.hs.srm.admin.modules.orders.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hs.srm.admin.modules.orders.dao.OrderFileDao;
import com.hs.srm.admin.modules.orders.entity.OrderFileEntity;
import com.hs.srm.admin.modules.orders.service.OrderFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ych
 * @since 2020-04-23 16:29:54
 */
@Service("orderFileService")
public class OrderFileServiceImpl extends ServiceImpl<OrderFileDao, OrderFileEntity> implements OrderFileService {

    @Autowired
    private OrderFileDao orderFileDao;

    /**
     * 根据id找出所有下载的文件
     *
     * @param id 订单id
     * @return
     */
    @Override
    public List<OrderFileEntity> findAllFile(String id) {
        return orderFileDao.findAll(id);


    }
}